import request from '@/utils/request'

// 查询快递公司列表
export function listFhDeliveryExpress(query, pageReq) {
  return request({
    url: '/act/fhDeliveryExpress/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询快递公司详细
export function getFhDeliveryExpress(id) {
  return request({
    url: '/act/fhDeliveryExpress/' + id,
    method: 'get'
  })
}

// 新增快递公司
export function addFhDeliveryExpress(data) {
  return request({
    url: '/act/fhDeliveryExpress',
    method: 'post',
    data: data
  })
}

// 修改快递公司
export function updateFhDeliveryExpress(data) {
  return request({
    url: '/act/fhDeliveryExpress',
    method: 'put',
    data: data
  })
}

// 删除快递公司
export function delFhDeliveryExpress(id) {
  return request({
    url: '/act/fhDeliveryExpress/' + id,
    method: 'delete'
  })
}

// 导出快递公司
export function exportFhDeliveryExpress(query) {
  return request({
    url: '/act/fhDeliveryExpress/export',
    method: 'get',
    params: query
  })
}
